package cn.laixueit.api;

import cn.laixueit.cart.pojo.item.Category;
import org.springframework.http.ResponseEntity;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestParam;

import java.util.List;

public interface CategoryApi {

    @GetMapping("/category/{id}")
    public ResponseEntity<Category> getCategoryById(@PathVariable("id") Long id);


    @GetMapping("/category/names")
    public ResponseEntity<List<String>> names(@RequestParam("ids")List<Long> ids);
}
